﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="MerchComment.aspx.vb" Inherits="gojira.MerchComment" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ID" DataSourceID="SqlDataSource1" GridLines="None" 
        ShowHeader="False">
        <Columns>
            <asp:TemplateField>
                <ItemTemplate>
                    <p>
                        <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("Picture") %>' />
                    </p>
                    <p>
                        Description <%# Eval("Description")%>
                    </p>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:godzillaFilms %>" 
        ProviderName="<%$ ConnectionStrings:godzillaFilms.ProviderName %>" 
        SelectCommand="SELECT [Picture], [Description], [ID] FROM [Merchandise] WHERE ([ID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <br />
    Add a comment:<br />
    <br />
    Subject:<br />
    <asp:TextBox ID="tb_subject" runat="server"></asp:TextBox>
    <br />
    <br />
    Comment:<br />
    <asp:TextBox ID="tb_comment" runat="server" Height="118px" TextMode="MultiLine" 
        Width="293px"></asp:TextBox>
    <br />
    <br />
    <asp:Button ID="btn_comment" runat="server" Text="Add comment" />
</asp:Content>
